<?php
declare (strict_types = 1);

namespace app\admin\validate\maichen;

use think\Validate;

class Adjustment extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名'	=>	['规则1','规则2'...]
     *
     * @var array
     */	
	protected $rule = [
        'user' => ['require'],
        'price_adjustment_date' => ['require'],
        'price' => ['require'],
    ];
    
    /**
     * 定义错误信息
     * 格式：'字段名.规则名'	=>	'错误信息'
     *
     * @var array
     */	
    protected $message = [
        'user.require' => '调价人员信息缺失',
        'price_adjustment_date.require' => '调价日期是必选项',
        'price.require' => '价格为必选项',
    ];
}
